<?php

namespace CNAM\ActimanBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Service
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Service
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="nomService", type="string", length=255)
     */
    private $nomService;
    
    
    /**
     *
     * @ORM\OneToMany(targetEntity="acProcedure",mappedBy="service")
     */
    protected $Procedures;
    



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set nomService
     *
     * @param string $nomService
     * @return Service
     */
    public function setNomService($nomService)
    {
        $this->nomService = $nomService;

        return $this;
    }

    /**
     * Get nomService
     *
     * @return string 
     */
    public function getNomService()
    {
        return $this->nomService;
    }

    /**
     * Constructor
     */
    public function __construct()
    {
        $this->Procedures = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Add Procedures
     *
     * @param \CNAM\ActimanBundle\Entity\acProcedure $procedures
     * @return Service
     */
    public function addProcedure(\CNAM\ActimanBundle\Entity\acProcedure $procedures)
    {
        $this->Procedures[] = $procedures;

        return $this;
    }

    /**
     * Remove Procedures
     *
     * @param \CNAM\ActimanBundle\Entity\acProcedure $procedures
     */
    public function removeProcedure(\CNAM\ActimanBundle\Entity\acProcedure $procedures)
    {
        $this->Procedures->removeElement($procedures);
    }

    /**
     * Get Procedures
     *
     * @return \Doctrine\Common\Collections\Collection 
     */
    public function getProcedures()
    {
        return $this->Procedures;
    }
}
